
import {ComponentInternalInstance, defineComponent, getCurrentInstance} from 'vue'

export default defineComponent ({
  setup(){
  
  	//vue3-typescript
    const { proxy } = (getCurrentInstance() as ComponentInternalInstance)
	
    const _this = proxy
    
    console.log('getCurrentInstance()中的ctx:', _this)
    console.log('getCurrentInstance()中的proxy:', proxy)
    
    return {
        _this
    }
  }
})
